import request from '@/utils/request'

export function landorderList(query) {
  return request({
    method: 'get',
    params: {
      _gp: 'admin.leaseOrder',
      _mt: 'list',
      ...query
    }
  })
}

export function detailLandorder(id) {
  return request({
    method: 'get',
    params: {
      _gp: 'admin.leaseOrder',
      _mt: 'detail',
      id: id
    }
  })
}

export function cancelLandorder(order) {
  return request({
    method: 'get',
    params: {
      _gp: 'admin.leaseOrder',
      _mt: 'cancel',
      orderNo: order
    }
  })
}

export function refundLandorder(order, sum) {
  return request({
    method: 'get',
    params: {
      _gp: 'admin.leaseOrder',
      _mt: 'customRefund',
      orderNo: order,
      sum: sum
    }
  })
}

